package com.yungu.swift.system.sys.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.PageVo;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.system.sys.model.dto.SysDepartLimitDto;
import com.yungu.swift.system.sys.model.param.AdminDepartLimitPageParam;
import com.yungu.swift.system.sys.model.vo.SysDepartLimitVo;

/**
 * @Description: 出发时间限制
 */
public interface SysDepartLimitService extends BaseService<SysDepartLimitDto> {

    /**
     * 后台分页查询
     *
     * @param departLimitPageParam
     * @return
     */
    ResponseData<PageVo<SysDepartLimitVo>> queryPageVo(AdminDepartLimitPageParam departLimitPageParam);

    /**
     * 新增或者编辑
     *
     * @param departLimitPageParam
     * @return
     */
    ResponseData<SysDepartLimitVo> addOrEdit(AdminDepartLimitPageParam departLimitPageParam);

    /**
     * 检查出发时间限制
     *
     * @param departLimitPageParam
     * @return
     */
    ResponseData<Boolean> checkDepartLimit(AdminDepartLimitPageParam departLimitPageParam);

}